package com.ruoyi.web.wx.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.web.wx.mapper.CommunityManagerMapper;
import com.ruoyi.web.wx.entity.CommunityManager;
import com.ruoyi.web.wx.service.ICommunityManagerService;
import com.ruoyi.common.core.text.Convert;

/**
 * 社区员 服务层实现
 * 
 * @author ruoyi
 * @date 2019-08-27
 */
@Service
public class CommunityManagerServiceImpl implements ICommunityManagerService 
{
	@Autowired
	private CommunityManagerMapper communityManagerMapper;

	/**
     * 查询社区员信息
     * 
     * @param id 社区员ID
     * @return 社区员信息
     */
    @Override
	public CommunityManager selectCommunityManagerById(String id)
	{
	    return communityManagerMapper.selectCommunityManagerById(id);
	}
	
	/**
     * 查询社区员列表
     * 
     * @param communityManager 社区员信息
     * @return 社区员集合
     */
	@Override
	public List<CommunityManager> selectCommunityManagerList(CommunityManager communityManager)
	{
	    return communityManagerMapper.selectCommunityManagerList(communityManager);
	}
	
    /**
     * 新增社区员
     * 
     * @param communityManager 社区员信息
     * @return 结果
     */
	@Override
	public int insertCommunityManager(CommunityManager communityManager)
	{
	    return communityManagerMapper.insertCommunityManager(communityManager);
	}
	
	/**
     * 修改社区员
     * 
     * @param communityManager 社区员信息
     * @return 结果
     */
	@Override
	public int updateCommunityManager(CommunityManager communityManager)
	{
	    return communityManagerMapper.updateCommunityManager(communityManager);
	}

	/**
     * 删除社区员对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteCommunityManagerByIds(String ids)
	{
		return communityManagerMapper.deleteCommunityManagerByIds(Convert.toStrArray(ids));
	}
	
}
